<?php
/**
 * Row class for Zend_Db_Tree_Nested_Table
 * 
 * @category   Zend
 * @package    Zend_Db
 * @author     Steshenko Alexander (http://lcf.name)
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 */
class Zend_Db_Tree_Nested_Table_Row extends Zend_Db_Table_Row_Abstract
{
    /**
     * Move current row to previous place on the level in the tree
     *
     * @return boolean
     */
    public function moveToPrevious()
    {
        return $this->getTable()->moveToPrevious($this);
    }
    
    /**
     * Move current row to next place on the level in the tree
     *
     * @return boolean
     */
    public function moveToNext()
    {
        return $this->getTable()->moveToNext($this);
    }
    
    /**
     * Move current row to an other and put it before
     *
     * @return boolean
     */
    public function moveToRowPrevious($moveToRowWhere)
    {
        return $this->getTable()->moveToRowPrevious($this, $moveToRowWhere);
    }
    
    /**
     * Move current row to an other and put it after
     *
     * @return boolean
     */
    public function moveToRowNext($moveToRowWhere)
    {
        return $this->getTable()->moveToRowNext($this, $moveToRowWhere);
    }
    
    /**
     * Move current row to other's children first
     *
     * @return boolean
     */
    public function moveToChildrenFirst($parentWhere)
    {
        return $this->getTable()->moveToChildrenFirst($this, $parentWhere);
    }
    
    /**
     * Move current row to other's children last
     *
     * @return boolean
     */
    public function moveToChildrenLast($parentWhere)
    {
        return $this->getTable()->moveToChildrenLast($this, $parentWhere);
    }   
    
    
}